﻿
@using System.Security.Claims;


@if (User.Identities.Any(u => u.IsAuthenticated))
{
    <li class="dropdown messages-menu">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">欢迎 @User.Identities.First(u => u.IsAuthenticated).FindFirst(ClaimTypes.NameIdentifier).Value (@User.Identity.AuthenticationType)</a>

        <ul class="dropdown-menu">
            <li class="footer"> 
                <a asp-area="Sys" asp-controller="User" asp-action="ModifyPsw">修改密码</a>            
                <a asp-area="" asp-controller="Home" asp-action="Logout">注销</a>
            </li>
        </ul>
    </li>
}
else
{
    <ul class="nav navbar-nav navbar-right">
        <li><a asp-controller="Home" asp-action="Login">登录</a></li>
    </ul>
}
